'Declaration
Public Overloads Shared Sub CompressZlib( _ ByVal input() As System.Byte, _ ByVal startIndex As System.Integer, _ ByVal count As System.Integer, _ ByVal output As System.IO.Stream, _ ByVal compressionLevel As ENCompressionLevel, _ ByVal closeOutputStream As System.Boolean _ )
'Usage
Dim input() As System.Byte Dim startIndex As System.Integer Dim count As System.Integer Dim output As System.IO.Stream Dim compressionLevel As ENCompressionLevel Dim closeOutputStream As System.Boolean NCompression.CompressZlib(input, startIndex, count, output, compressionLevel, closeOutputStream)
public static void CompressZlib( System.byte[] input, System.int startIndex, System.int count, System.IO.Stream output, ENCompressionLevel compressionLevel, System.bool closeOutputStream )
Parameters
- input
- An array of bytes to compress.
- startIndex
- The index in the byte array the compression algorith should start working at.
- count
- The total number of bytes from the byte array that should be compressed.
- output
- The stream to write the compressed data to.
- compressionLevel
- The compression level to apply.
- closeOutputStream
- Determines whether to close the output stream when the compression has finished or not.